package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @DESCRIPTION: 远程调用短信服务
 * @author: zr
 * @DATE: 2022/12/30 14:54
 */
@FeignClient(value = "gulimall-third-part")
public interface SmsFeignService {
    /**
     * 发送验证码
     *
     * @param phone 手机号
     * @param code  验证码
     * @return
     */
    @GetMapping("/sms/send/code")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
